﻿using System;
using Grundy.Entity;
using Grundy.Message;

namespace Grundy.Licensing.Server
{
    public class InvalidLicenseOperationException : Exception
    {
        private readonly string _message;
        public License License { get; private set; }
        public FeatureIdentificationKey FeatureIdentificationKey { get; private set; }

        public InvalidLicenseOperationException(License license, string message)
        {
            _message = message;
            License = license;
        }

        public override string Message
        {
            get
            {
                return _message;
            }
        }
    }
}